# -*- mode: org; fill-column: 80; -*-
#+TITLE: Booleans
#+AUTHOR: Zelphir Kaltstahl
#+STARTUP: content indent align inlineimages entitiesplain nologdone nologreschedule nologredeadline nologrefile
#+TODO: TODO WIP | DONE
#+DATE: <2021-05-08 Sa>
#+LANGUAGE: English
#+PRIORITIES: A C C

* Operator precedence

The operator precedence of logical operators are lower than that of arithmetic
operators. This means the following code works:

#+begin_src sml :results output verbatim replace drawer
3 + 4 > 2 + 3
#+end_src

#+RESULTS:
:results:
val it = true : bool
:end:

* Boolean operators

There are the following operators:

- ~andalso~ (short-circuit operator)
- ~orelse~ (short-circuit operator)
- ~not~
